

let fs = require("fs");
let cns = require("./Localization_jz.js");

let file = fs.readFileSync("./Localization_jz_n.txt").toString();




let fileArr = file.split("\n");



let str = fileArr[0];


for (let index = 1; index < fileArr.length; index++) {
    let v = fileArr[index];

    let id = v.split(",")[0];
    let cnstr = cns[id]?.cn || "";

    v = v.replace(/,,,,,,,,,,,,\s*$/ig, cnstr)
    str += "\n" + v;

}





fs.writeFileSync("./Localization.js_cn.txt", str)
